package com.atguigu.base;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @PACKAGE_NAME: com.atguigu.base
 * @CLASSNAME: BaseService
 * @AUTHOR: zhangsan
 * @DATE: 2024/4/16 19:47
 * @SINCE 17.0.7
 * @DESCRIPTION: BaseService
 */
public interface BaseService<T> {

    Integer insert(T t);

    T getById(Serializable id);

    Integer update(T t);

    Integer delete(Serializable id);

    PageInfo<T> findPage(Map<String,Object> filters);
}
